package com.wyk.service.impl;

import com.wyk.mapper.StorageMapper;
import com.wyk.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author WangYuKai
 * @Date 2022/8/4
 * @apiNote
 */
@Service
public class StorageServiceImpl implements StorageService {
    @Autowired
    private StorageMapper mapper;
    @Override
    public int updateStorageCount(Long productId, Integer count) {
        return mapper.updateStroageCount(productId, count);
    }
}
